package tests;
import java.util.Date;

import junit.framework.Assert;
import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;

import DataDefinition.Users;

public class test {
	private Users uzivatel;
	
	@Before
	public void setUp(){
		uzivatel = new Users("Marek","Barak",new Date());
	}

	@Test
	public void testUsers() {
		Users actual = uzivatel;
		Users excepted = new Users("Marek","Barak",new Date());
		Assert.assertEquals(excepted, actual);
	}

	@Test
	public void testGetName() {
		String actual = uzivatel.getName();
		String excepted = "Marek";
		Assert.assertEquals(excepted,actual);
	}

	@Test
	public void testGetSurName() {
		String actual = uzivatel.getSurName();
		String excepted = "Barak";
	}

}
